﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using Microsoft.Practices.Prism.Modularity;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Microsoft.Practices.Prism.Mvvm;
using Microsoft.Practices.Prism;
using Microsoft.Practices.Unity;
using Interfaces;


namespace Views
{
    public partial class NewsMainView : UserControl, IView
    {
        private readonly IUnityContainer _container;
        private readonly INewsViewModel _newsViewModel;

        public NewsMainView(IUnityContainer container, INewsViewModel newsViewModel)
        {
            InitializeComponent();

            _container = container;
            DataContext = _newsViewModel = newsViewModel; 
        }
    }
}
